package com.sj.purchase.modules.gy.domain;

import com.alibaba.fastjson.annotation.JSONField;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

/**
 * Created by icodebug on 17-5-22.
 */
@Entity
public class GySku {

    @JSONField(name = "code")
    @Id
    private String id;

    private String name;

    @ManyToOne
    private GySpu gySpu;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public GySpu getGySpu() {
        return gySpu;
    }

    public void setGySpu(GySpu gySpu) {
        this.gySpu = gySpu;
    }
}
